<?
$topics = HDServices::contentServices()->topicsRightMenu();

$route = 'lesson';
$route = 'bai-giang';
$title = 'Bài giảng';
switch ($type) {
    case 'lesson':
        $route = 'bai-giang';
        $title = 'Bài giảng';
        break;
    case 'video':
        $route = 'video';
        $title = 'Video';
        break;
    case 'lyric':
        $route = 'hop-am';
        $title = 'Hợp âm';
    default:
        break;
}

?>

<div class="title">
    <label>{{$title}} theo chủ đề</label>
</div>
<div class="ct-box">
    <div class="tags">
        @foreach($topics as $topic)
        <a href="<?= route($route, array('topic' => $topic->id)) ?>">
            <?= $topic->title ?>
        </a>
        @endforeach

    </div>
</div>